package com.weipai.springboot.module.dao;

import com.weipai.springboot.model.IntegralGoods;

import java.util.List;
import java.util.Map;

/**
 * @Author: 曹朋飞
 * @Date: 2018/08/27 18:21
 */
public interface IntegralGoodsDao {

    //保存
    int insert(IntegralGoods integralGoods);

    //删除（逻辑删除）
    int updateDel(String integralGoodsId);

    IntegralGoods getIntegralGoodsById(String integralGoodsId);

    int updateByPrimaryKey(IntegralGoods integralGoods);

    int batchDeleteById(String[] id);

    int updateIntegralAndStatus(String theIntegral, String integralStatus, String integralGoodsId);

    //分页查询
    List<Map<String, Object>> selectAllByPage(Integer start, Integer size);
    List<Map<String, Object>> selectAllByPage22(Integer start, Integer size);

    //总数量
    Integer selectAllByPageAmount();
    Integer selectAllByPageAmount22();

    int updateByPrimaryKeySelective22(IntegralGoods integralGoods);

    IntegralGoods selectByGoodsId(String goodsId);
}
